package icu.groot.alan.hotel.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 房间
 */
@Data
@TableName("`room`")
public class RoomDo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private String roomCode;
    /**
     * 房间照片
     */
    private String roomImagesPath;

    /**
     * 房间数量
     */
    private Integer roomNum;

    /**
     * 房间空闲数量
     */
    private Integer roomSpareNum;

    /**
     * 房间类型
     */
    private String roomType;

    /**
     * 房间描述
     */
    private String roomDesc;

    /**
     * 房间价格: room_expense
     */
    private BigDecimal roomExp;

    /**
     * 房间设施空间大小: room_facilities_space
     */
    private Integer roomFacSpa;

    /**
     * 房间设施楼层: room_facilities_floor
     */
    private Integer roomFacFloor;

    /**
     * 房间设施床
     : room_facilities_bed
     */
    private BigDecimal roomFacBed;

    /**
     * 房间设施wifi: room_facilities_wifi
     */
    private boolean roomFacWifi;

    /**
     * 房间设施早餐: room_facilities_breakfast
     */
    private boolean roomFacBre;

    /**
     * 房间设施入住人数: room_facilities_occupancy
     */
    private Integer roomFacOcc;

    /**
     * 是否禁用
     */
    private Boolean disable;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 逻辑删除
     */
    @TableLogic(value = "0", delval = "1")
    private boolean deleted;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime modifyTime;

}
